<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: OpenMesh/Core/Utils/PropertyManager.hh Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a00482_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PropertyManager.hh</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* ========================================================================= *</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *                               OpenMesh                                    *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *           Copyright (c) 2001-2015, RWTH-Aachen University                 *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *           Department of Computer Graphics and Multimedia                  *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *                          All rights reserved.                             *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *                            www.openmesh.org                               *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *---------------------------------------------------------------------------*</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * This file is part of OpenMesh.                                            *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *---------------------------------------------------------------------------*</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without        *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions        *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * are met:                                                                  *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright notice, *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer.                  *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright      *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    notice, this list of conditions and the following disclaimer in the    *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    documentation and/or other materials provided with the distribution.   *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * 3. Neither the name of the copyright holder nor the names of its          *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *    contributors may be used to endorse or promote products derived from   *</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *    this software without specific prior written permission.               *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS       *</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A           *</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,  *</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,       *</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR        *</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    *</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING      *</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS        *</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.              *</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment"> *                                                                           *</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment"> * ========================================================================= */</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifndef PROPERTYMANAGER_HH_</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#define PROPERTYMANAGER_HH_</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;OpenMesh/Core/System/config.h&gt;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;OpenMesh/Core/Utils/HandleToPropHandle.hh&gt;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;OpenMesh/Core/Mesh/PolyConnectivity.hh&gt;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">namespace </span><a class="code" href="a01233.html">OpenMesh</a> {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE, <span class="keyword">typename</span> MeshT = <span class="keywordtype">int</span>&gt;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="a02597.html">   80</a></span>&#160;<span class="keyword">class </span><a class="code" href="a02597.html">PropertyManager</a> {</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keyword">using</span> Value           = <span class="keyword">typename</span> PROPTYPE::Value;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keyword">using</span> value_type      = <span class="keyword">typename</span> PROPTYPE::value_type;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">using</span> Handle          = <span class="keyword">typename</span> PROPTYPE::Handle;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">using</span> <a class="code" href="a02597.html">Self</a>            = <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keyword">using</span> Reference       = <span class="keyword">typename</span> PROPTYPE::reference;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keyword">using</span> ConstReference  = <span class="keyword">typename</span> PROPTYPE::const_reference;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="comment">// Mesh properties (MPropHandleT&lt;...&gt;) are stored differently than the other properties.</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="comment">// This class implements different behavior when copying or swapping data from one</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="comment">// property manager to a another one.</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> PropertyManager2, <span class="keyword">typename</span> PropHandleT&gt;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keyword">struct </span>StorageT;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="comment">// specialization for Mesh Properties</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> PropertyManager2&gt;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keyword">struct </span>StorageT&lt;PropertyManager2, MPropHandleT&lt;Value&gt;&gt; {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;          <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a02597.html#a905436f2131ac5811ad43400fb20fb54">copy</a>(<span class="keyword">const</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>&amp; from, PropertyManager2&amp; to) {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            *to = *from;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;          }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;          <span class="keyword">static</span> <span class="keywordtype">void</span> swap(<a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>&amp; from, PropertyManager2&amp; to) {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            std::swap(*to, *from);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;          }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;          <span class="keyword">static</span> ConstReference access_property_const(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> PROPTYPE&amp; prop_handle, <span class="keyword">const</span> Handle&amp;) {</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_handle);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;          }</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;          <span class="keyword">static</span> Reference access_property(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> PROPTYPE&amp; prop_handle, <span class="keyword">const</span> Handle&amp;) {</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_handle);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;          }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        };</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="comment">// definition for other Mesh Properties</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> PropertyManager2, <span class="keyword">typename</span> PropHandleT&gt;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keyword">struct </span>StorageT {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;          <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a02597.html#a905436f2131ac5811ad43400fb20fb54">copy</a>(<span class="keyword">const</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>&amp; from, PropertyManager2&amp; to) {</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            from.<a class="code" href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">copy_to</a>(from.mesh_.template all_elements&lt;Handle&gt;(), to, to.mesh_.template all_elements&lt;Handle&gt;());</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;          }</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;          <span class="keyword">static</span> <span class="keywordtype">void</span> swap(<a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>&amp; lhs, PropertyManager2&amp; rhs) {</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            std::swap(lhs.mesh().property(lhs.prop_).data_vector(), rhs.mesh().property(rhs.prop_).data_vector());</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="comment">// resize the property to the correct size</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            lhs.mesh().property(lhs.prop_).resize(lhs.mesh().template n_elements&lt;Handle&gt;());</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            rhs.mesh().property(rhs.prop_).resize(rhs.mesh().template n_elements&lt;Handle&gt;());</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;          }</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;          <span class="keyword">static</span> ConstReference access_property_const(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> PROPTYPE&amp; prop_handle, <span class="keyword">const</span> Handle&amp; handle) {</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_handle, handle);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;          }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;          <span class="keyword">static</span> Reference access_property(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> PROPTYPE&amp; prop_handle, <span class="keyword">const</span> Handle&amp; handle) {</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_handle, handle);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;          }</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        };</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keyword">using</span> Storage = StorageT&lt;Self, PROPTYPE&gt;;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        OM_DEPRECATED(<span class="stringliteral">&quot;Use the constructor without parameter &#39;existing&#39; instead. Check for existance with hasProperty&quot;</span>) <span class="comment">// As long as this overload exists, initial value must be first parameter due to ambiguity for properties of type bool</span></div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="a02597.html#a46387eb1a41dbdcb848987ce6358f8d1">  158</a></span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, const <span class="keywordtype">char</span> *propname, <span class="keywordtype">bool</span> existing) : mesh_(mesh), retain_(existing), name_(propname) {</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            <span class="keywordflow">if</span> (existing) {</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                <span class="keywordflow">if</span> (!PropertyManager::mesh().get_property_handle(prop_, propname)) {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                    std::ostringstream oss;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                    oss &lt;&lt; <span class="stringliteral">&quot;Requested property handle \&quot;&quot;</span> &lt;&lt; propname &lt;&lt; <span class="stringliteral">&quot;\&quot; does not exist.&quot;</span>;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                    <span class="keywordflow">throw</span> std::runtime_error(oss.str());</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                }</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                PropertyManager::mesh().add_property(prop_, propname);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            }</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        }</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="a02597.html#afd9bdea74cd82fba4cac786ce5f4b6af">  178</a></span>&#160;        <a class="code" href="a02597.html#afd9bdea74cd82fba4cac786ce5f4b6af">PropertyManager</a>(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) : mesh_(mesh), retain_(true), name_(propname) {</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;            <span class="keywordflow">if</span> (!PropertyManager::mesh().get_property_handle(prop_, propname)) {</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;              PropertyManager::mesh().add_property(prop_, propname);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            }</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        }</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="a02597.html#a2a8ee99088e9730f51367b431d325aee">  194</a></span>&#160;        <a class="code" href="a02597.html#a2a8ee99088e9730f51367b431d325aee">PropertyManager</a>(<span class="keyword">const</span> Value&amp; initial_value, <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) : mesh_(mesh), retain_(true), name_(propname) {</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            <span class="keywordflow">if</span> (!mesh_.get_property_handle(prop_, propname)) {</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;              PropertyManager::mesh().add_property(prop_, propname);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;              <a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(mesh_.all_elements&lt;Handle&gt;(), initial_value);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            }</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        }</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="a02597.html#a87d05b80c8e2abe588624c25520822bf">  208</a></span>&#160;        <a class="code" href="a02597.html#a87d05b80c8e2abe588624c25520822bf">PropertyManager</a>(<span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh) : mesh_(mesh), retain_(false), name_(<span class="stringliteral">&quot;&quot;</span>) {</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            PropertyManager::mesh().add_property(prop_, name_);</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        }</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="a02597.html#a8c4a25a0252e0f0f7de16007410f2b8c">  220</a></span>&#160;        <a class="code" href="a02597.html#a8c4a25a0252e0f0f7de16007410f2b8c">PropertyManager</a>(<span class="keyword">const</span> Value&amp; initial_value, <span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh) : mesh_(mesh), retain_(false), name_(<span class="stringliteral">&quot;&quot;</span>) {</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            PropertyManager::mesh().add_property(prop_, name_);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(mesh_.all_elements&lt;Handle&gt;(), initial_value);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        }</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="a02597.html#ab99f400195c4284bfde18e16570d4e9b">  233</a></span>&#160;        <a class="code" href="a02597.html#ab99f400195c4284bfde18e16570d4e9b">PropertyManager</a>(<a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, PROPTYPE property_handle) : mesh_(mesh), prop_(property_handle), retain_(true), name_() {</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        }</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>() = <span class="keyword">delete</span>;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>(<span class="keyword">const</span> <a class="code" href="a02597.html">PropertyManager</a>&amp; rhs)</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;          :</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            mesh_(rhs.mesh_),</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            prop_(),</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;            retain_(rhs.retain_),</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            name_(rhs.name_)</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        {</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;          <span class="keywordflow">if</span> (rhs.retain_) <span class="comment">// named property -&gt; create a property manager referring to the same</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;          {</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            prop_ = rhs.prop_;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;          }</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;          <span class="keywordflow">else</span> <span class="comment">// unnamed property -&gt; create a property manager refering to a new property and copy the contents</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;          {</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            PropertyManager::mesh().add_property(prop_, name_);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            Storage::copy(rhs, *<span class="keyword">this</span>);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;          }</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        }</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="a02597.html#aa1b14fd4993a46ba4a9d417279861e1c">  262</a></span>&#160;        <a class="code" href="a02597.html">PropertyManager</a> <a class="code" href="a02597.html#aa1b14fd4993a46ba4a9d417279861e1c">clone</a>()</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        {</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;          <a class="code" href="a02597.html">PropertyManager</a> result(this-&gt;mesh());</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;          Storage::copy(*<span class="keyword">this</span>, result);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;          <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        }</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="a02597.html">PropertyManager</a>&amp; rhs)</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        {</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;          <span class="keywordflow">if</span> (&amp;mesh_ == &amp;rhs.mesh_ &amp;&amp; prop_ == rhs.prop_)</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            ; <span class="comment">// nothing to do</span></div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;          <span class="keywordflow">else</span></div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            Storage::copy(rhs, *<span class="keyword">this</span>);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;          <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        }</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        ~<a class="code" href="a02597.html">PropertyManager</a>() {</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;            deleteProperty();</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        }</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordtype">void</span> swap(<a class="code" href="a02597.html">PropertyManager</a> &amp;rhs) {</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;          <span class="comment">// swap the data stored in the properties</span></div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;          Storage::swap(rhs, *<span class="keyword">this</span>);</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        }</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">bool</span> propertyExists(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            PROPTYPE dummy;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#abf5af584fc22471b32461eeef7d5b3d4">get_property_handle</a>(dummy, propname);</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        }</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="keywordtype">bool</span> isValid()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> prop_.is_valid(); }</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keyword">operator</span> bool()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isValid(); }</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keyword">const</span> PROPTYPE &amp;getRawProperty()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> prop_; }</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keyword">const</span> std::string &amp;getName()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name_; }</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> MeshType &gt;</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keyword">const</span> MeshType&amp; getMesh()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><span class="keyword">const </span>MeshType&amp;<span class="keyword">&gt;</span>(mesh_); }</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        <span class="keyword">const</span> MeshT&amp; getMesh()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><span class="keyword">const </span>MeshT&amp;<span class="keyword">&gt;</span>(mesh_); }</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        OM_DEPRECATED(<span class="stringliteral">&quot;retain no longer has any effect. Instead, named properties are always retained, while unnamed ones are not.&quot;</span>)</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordtype">void</span> retain(<span class="keywordtype">bool</span> = <span class="keyword">true</span>) {}</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>(<a class="code" href="a02597.html">PropertyManager</a> &amp;&amp;rhs)</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;          :</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;            mesh_(rhs.mesh_),</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            prop_(rhs.prop_),</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            retain_(rhs.retain_),</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;            name_(rhs.name_)</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;        {</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;          <span class="keywordflow">if</span> (!rhs.retain_)</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            rhs.prop_.invalidate(); <span class="comment">// only invalidate unnamed properties</span></div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        }</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <a class="code" href="a02597.html">PropertyManager</a>&amp; operator=(<a class="code" href="a02597.html">PropertyManager</a>&amp;&amp; rhs)</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        {</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            <span class="keywordflow">if</span> ((&amp;mesh_ != &amp;rhs.mesh_) || (prop_ != rhs.prop_))</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            {</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;              <span class="keywordflow">if</span> (rhs.retain_)</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;              {</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;                <span class="comment">// retained properties cannot be invalidated. Copy instead</span></div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                Storage::copy(rhs, *<span class="keyword">this</span>);</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;              }</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;              <span class="keywordflow">else</span></div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;              {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;                <span class="comment">// swap the data stored in the properties</span></div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                Storage::swap(rhs, *<span class="keyword">this</span>);</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                <span class="comment">// remove the property from rhs</span></div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                rhs.mesh().<a class="code" href="a02133.html#a1e6ab3a90a233ced3fef7a1575766c17">remove_property</a>(rhs.prop_);</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                <span class="comment">// invalidate prop_</span></div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                rhs.prop_.invalidate();</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;              }</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            }</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        }</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keyword">static</span> <a class="code" href="a02597.html">PropertyManager</a> createIfNotExists(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager</a>(mesh, propname);</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        }</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROP_VALUE, <span class="keyword">typename</span> ITERATOR_TYPE&gt;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <span class="keyword">static</span> <a class="code" href="a02597.html">PropertyManager</a> createIfNotExists(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname,</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                <span class="keyword">const</span> ITERATOR_TYPE &amp;begin, <span class="keyword">const</span> ITERATOR_TYPE &amp;end,</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;                <span class="keyword">const</span> PROP_VALUE &amp;init_value) {</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">bool</span> exists = propertyExists(mesh, propname);</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            <a class="code" href="a02597.html">PropertyManager</a> pm(mesh, propname, exists);</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            pm.retain();</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <span class="keywordflow">if</span> (!exists)</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                pm.<a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(begin, end, init_value);</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;            <span class="keywordflow">return</span> std::move(pm);</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        }</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROP_VALUE, <span class="keyword">typename</span> ITERATOR_RANGE&gt;</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        <span class="keyword">static</span> <a class="code" href="a02597.html">PropertyManager</a> createIfNotExists(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname,</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                <span class="keyword">const</span> ITERATOR_RANGE &amp;range, <span class="keyword">const</span> PROP_VALUE &amp;init_value) {</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;            <span class="keywordflow">return</span> createIfNotExists(</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;                    mesh, propname, range.begin(), range.end(), init_value);</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        }</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;</div><div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="a02597.html#a0d95172f0cee362353cf61870a09b7e7">  426</a></span>&#160;        <span class="keyword">typename</span> PROPTYPE::reference&amp; <a class="code" href="a02597.html#a0d95172f0cee362353cf61870a09b7e7">operator*</a>() {</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;            <span class="keywordflow">return</span> mesh().<a class="code" href="a02133.html#a8256c16bf247547ae480344cd1c2ec2b">mproperty</a>(prop_)[0];</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        }</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div><div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="a02597.html#a72b64e0da09d2f6ecf31d91df1f03198">  442</a></span>&#160;        <span class="keyword">typename</span> PROPTYPE::const_reference&amp; <a class="code" href="a02597.html#a72b64e0da09d2f6ecf31d91df1f03198">operator*</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">return</span> mesh().<a class="code" href="a02133.html#a8256c16bf247547ae480344cd1c2ec2b">mproperty</a>(prop_)[0];</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        }</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;</div><div class="line"><a name="l00453"></a><span class="lineno"><a class="line" href="a02597.html#a54c8a19dfecfc4dea7f7561a99db9f13">  453</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">typename</span> PROPTYPE::reference <a class="code" href="a02597.html#a54c8a19dfecfc4dea7f7561a99db9f13">operator[] </a>(Handle handle) {</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;            <span class="keywordflow">return</span> mesh().<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_, handle);</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        }</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="a02597.html#a28974d3379f7531e964e32356404afe7">  464</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">typename</span> PROPTYPE::const_reference <a class="code" href="a02597.html#a54c8a19dfecfc4dea7f7561a99db9f13">operator[] </a>(<span class="keyword">const</span> Handle&amp; handle)<span class="keyword"> const </span>{</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;            <span class="keywordflow">return</span> mesh().<a class="code" href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">property</a>(prop_, handle);</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        }</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;</div><div class="line"><a name="l00475"></a><span class="lineno"><a class="line" href="a02597.html#aba0aec0d315ac14402c43fcc9543b869">  475</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">typename</span> PROPTYPE::reference <a class="code" href="a02597.html#aba0aec0d315ac14402c43fcc9543b869">operator() </a>(<span class="keyword">const</span> Handle&amp; handle = Handle()) {</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;<span class="comment">//            return mesh().property(prop_, handle);</span></div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;            <span class="keywordflow">return</span> Storage::access_property(mesh(), prop_, handle);</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        }</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;</div><div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="a02597.html#a78cc33c7c56360a44a675bd41879fa6b">  487</a></span>&#160;        <span class="keyword">inline</span> <span class="keyword">typename</span> PROPTYPE::const_reference <a class="code" href="a02597.html#aba0aec0d315ac14402c43fcc9543b869">operator() </a>(<span class="keyword">const</span> Handle&amp; handle = Handle())<span class="keyword"> const </span>{</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;<span class="comment">//            return mesh().property(prop_, handle);</span></div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;            <span class="keywordflow">return</span> Storage::access_property_const(mesh(), prop_, handle);</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        }</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> HandleTypeIterator, <span class="keyword">typename</span> PROP_VALUE&gt;</div><div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">  517</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(HandleTypeIterator begin, HandleTypeIterator end,</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;                <span class="keyword">const</span> PROP_VALUE &amp;value) {</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;            <span class="keywordflow">for</span> (; begin != end; ++begin)</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;                (*<span class="keyword">this</span>)[*begin] = value;</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        }</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<span class="preprocessor">#if (defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1800)) || __cplusplus &gt; 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)</span></div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> HandleTypeIteratorRange, <span class="keyword">typename</span> PROP_VALUE&gt;</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(<span class="keyword">const</span> HandleTypeIteratorRange &amp;range,</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;                <span class="keyword">const</span> PROP_VALUE &amp;value) {</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;            <a class="code" href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">set_range</a>(range.begin(), range.end(), value);</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        }</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> HandleTypeIterator, <span class="keyword">typename</span> PROPTYPE_2,</div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;                 <span class="keyword">typename</span> HandleTypeIterator_2&gt;</div><div class="line"><a name="l00547"></a><span class="lineno"><a class="line" href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">  547</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">copy_to</a>(HandleTypeIterator begin, HandleTypeIterator end,</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;                <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE_2&gt;</a> &amp;dst_propmanager,</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;                HandleTypeIterator_2 dst_begin, HandleTypeIterator_2 dst_end)<span class="keyword"> const </span>{</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            <span class="keywordflow">for</span> (; begin != end &amp;&amp; dst_begin != dst_end; ++begin, ++dst_begin) {</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;                dst_propmanager[*dst_begin] = (*this)[*begin];</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            }</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        }</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> RangeType, <span class="keyword">typename</span> PROPTYPE_2,</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;                 <span class="keyword">typename</span> RangeType_2&gt;</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">copy_to</a>(<span class="keyword">const</span> RangeType &amp;range,</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;                <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE_2&gt;</a> &amp;dst_propmanager,</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;                <span class="keyword">const</span> RangeType_2 &amp;dst_range)<span class="keyword"> const </span>{</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;            <a class="code" href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">copy_to</a>(range.begin(), range.end(), dst_propmanager,</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;                    dst_range.begin(), dst_range.end());</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        }</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> RangeType, <span class="keyword">typename</span> RangeType_2&gt;</div><div class="line"><a name="l00581"></a><span class="lineno"><a class="line" href="a02597.html#a905436f2131ac5811ad43400fb20fb54">  581</a></span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a02597.html#a905436f2131ac5811ad43400fb20fb54">copy</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *prop_name,</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;                <a class="code" href="a02313.html">PolyConnectivity</a> &amp;src_mesh, <span class="keyword">const</span> RangeType &amp;src_range,</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;                <a class="code" href="a02313.html">PolyConnectivity</a> &amp;dst_mesh, <span class="keyword">const</span> RangeType_2 &amp;dst_range) {</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;            <span class="keyword">typedef</span> <a class="code" href="a02597.html">OpenMesh::PropertyManager&lt;PROPTYPE&gt;</a> DstPM;</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;            DstPM dst(DstPM::createIfNotExists(dst_mesh, prop_name));</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            <span class="keyword">typedef</span> <a class="code" href="a02597.html">OpenMesh::PropertyManager&lt;PROPTYPE&gt;</a> SrcPM;</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;            SrcPM src(src_mesh, prop_name, <span class="keyword">true</span>);</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;            src.copy_to(src_range, dst, dst_range);</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        }</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;        <span class="keywordtype">void</span> deleteProperty() {</div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;            <span class="keywordflow">if</span> (!retain_ &amp;&amp; prop_.is_valid())</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;                mesh().<a class="code" href="a02133.html#a1e6ab3a90a233ced3fef7a1575766c17">remove_property</a>(prop_);</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        }</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh()<span class="keyword"> const</span></div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;<span class="keyword">        </span>{</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;          <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="a02313.html">PolyConnectivity</a>&amp;<span class="keyword">&gt;</span>(mesh_);</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        }</div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;        <span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh_;</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        PROPTYPE prop_;</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;        <span class="keywordtype">bool</span> retain_;</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;        std::string name_;</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;};</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> PropertyT&gt;</div><div class="line"><a name="l00613"></a><span class="lineno"><a class="line" href="a02609.html">  613</a></span>&#160;<span class="keyword">class </span><a class="code" href="a02609.html">ConstPropertyViewer</a></div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;{</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;  <span class="keyword">using</span> Value      = <span class="keyword">typename</span> PropertyT::Value;</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;  <span class="keyword">using</span> value_type = <span class="keyword">typename</span> PropertyT::value_type;</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;  <span class="keyword">using</span> Handle     = <span class="keyword">typename</span> PropertyT::Handle;</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;  <a class="code" href="a02609.html">ConstPropertyViewer</a>(<span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh, <a class="code" href="a02537.html">PropertyT</a> property_handle)</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    :</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;      mesh_(mesh),</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;      prop_(property_handle)</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;  {}</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keyword">typename</span> PropertyT::const_reference <a class="code" href="a02597.html#aba0aec0d315ac14402c43fcc9543b869">operator() </a>(<span class="keyword">const</span> Handle&amp; handle)</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;  {</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    <span class="keywordflow">return</span> mesh_.property(prop_, handle);</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;  }</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keyword">typename</span> PropertyT::const_reference <a class="code" href="a02597.html#a54c8a19dfecfc4dea7f7561a99db9f13">operator[] </a>(<span class="keyword">const</span> Handle&amp; handle)</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;  {</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    <span class="keywordflow">return</span> mesh_.property(prop_, handle);</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;  }</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;  <span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a>&amp; mesh_;</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;  <a class="code" href="a02537.html">PropertyT</a> prop_;</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;};</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> ElementT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;<a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;</div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Named temporary properties are deprecated. Either create a temporary without name or a non-temporary with name&quot;</span>)</div><div class="line"><a name="l00671"></a><span class="lineno"><a class="line" href="a02597.html#a7c72dc50f42e6e4ee36d29cd29ceae85">  671</a></span>&#160;<a class="code" href="a02597.html#a7c72dc50f42e6e4ee36d29cd29ceae85">makeTemporaryProperty</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;(mesh, propname, <span class="keyword">false</span>);</div><div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;}</div><div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;</div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> ElementT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;<a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;</div><div class="line"><a name="l00701"></a><span class="lineno"><a class="line" href="a02597.html#a510b1f70ae8b69d9c4639b74c38eebba">  701</a></span>&#160;<a class="code" href="a02597.html#a510b1f70ae8b69d9c4639b74c38eebba">makeTemporaryProperty</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh) {</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;(mesh);</div><div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;}</div><div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;</div><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;</div><div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> ElementT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;<span class="keywordtype">bool</span></div><div class="line"><a name="l00729"></a><span class="lineno"><a class="line" href="a02597.html#a552b239c7cfa69ce7163417787cf37bf">  729</a></span>&#160;<a class="code" href="a02597.html#a552b239c7cfa69ce7163417787cf37bf">hasProperty</a>(<span class="keyword">const</span> <a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;    <span class="keyword">typename</span> <a class="code" href="a02505.html">HandleToPropHandle&lt;ElementT, T&gt;::type</a> ph;</div><div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    <span class="keywordflow">return</span> mesh.<a class="code" href="a02133.html#abf5af584fc22471b32461eeef7d5b3d4">get_property_handle</a>(ph, propname);</div><div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;}</div><div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;</div><div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> ElementT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;<a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;</div><div class="line"><a name="l00763"></a><span class="lineno"><a class="line" href="a02597.html#a8d0e0ad75218837f7ab7bff87fd6f24d">  763</a></span>&#160;<a class="code" href="a02597.html#a8d0e0ad75218837f7ab7bff87fd6f24d">getProperty</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;  <span class="keywordflow">if</span> (!hasProperty&lt;ElementT, T&gt;(mesh, propname))</div><div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;  {</div><div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    std::ostringstream oss;</div><div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;    oss &lt;&lt; <span class="stringliteral">&quot;Requested property handle \&quot;&quot;</span> &lt;&lt; propname &lt;&lt; <span class="stringliteral">&quot;\&quot; does not exist.&quot;</span>;</div><div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;    <span class="keywordflow">throw</span> std::runtime_error(oss.str());</div><div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;  }</div><div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;(mesh, propname);</div><div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;}</div><div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;</div><div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> ElementT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;<a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;</div><div class="line"><a name="l00804"></a><span class="lineno"><a class="line" href="a02597.html#add87d369da580fe875ce77472d80f336">  804</a></span>&#160;<a class="code" href="a02597.html#add87d369da580fe875ce77472d80f336">getOrMakeProperty</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, <span class="keyword">const</span> <span class="keywordtype">char</span> *propname) {</div><div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;typename HandleToPropHandle&lt;ElementT, T&gt;::type</a>&gt;::createIfNotExists(mesh, propname);</div><div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;}</div><div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;</div><div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE&gt;</div><div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Use makeTemporaryProperty instead.&quot;</span>)</div><div class="line"><a name="l00819"></a><span class="lineno"><a class="line" href="a02597.html#a124b1e945be6f5188a3bfab685018008">  819</a></span>&#160;<a class="code" href="a02597.html">PropertyManager</a>&lt;PROPTYPE&gt; <a class="code" href="a02597.html#a124b1e945be6f5188a3bfab685018008">makePropertyManagerFromNew</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname)</div><div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;{</div><div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE&gt;</a>(mesh, propname, <span class="keyword">false</span>);</div><div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;}</div><div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;</div><div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE, <span class="keyword">typename</span> MeshT = <span class="keywordtype">int</span>&gt;</div><div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Use getProperty instead.&quot;</span>)</div><div class="line"><a name="l00838"></a><span class="lineno"><a class="line" href="a02597.html#a6a0a645ca6dc88a5d315e9a151c5d61b">  838</a></span>&#160;<a class="code" href="a02597.html">PropertyManager</a>&lt;PROPTYPE, MeshT&gt; <a class="code" href="a02597.html#a6a0a645ca6dc88a5d315e9a151c5d61b">makePropertyManagerFromExisting</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname)</div><div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;{</div><div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;</a>(mesh, propname, <span class="keyword">true</span>);</div><div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;}</div><div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;</div><div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE, <span class="keyword">typename</span> MeshT = <span class="keywordtype">int</span>&gt;</div><div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Use getOrMakeProperty instead.&quot;</span>)</div><div class="line"><a name="l00853"></a><span class="lineno"><a class="line" href="a02597.html#acbe75e98e92fe82e86ee8105a68108d5">  853</a></span>&#160;<a class="code" href="a02597.html">PropertyManager</a>&lt;PROPTYPE, MeshT&gt; <a class="code" href="a02597.html#acbe75e98e92fe82e86ee8105a68108d5">makePropertyManagerFromExistingOrNew</a>(<a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname)</div><div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;{</div><div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE, MeshT&gt;::createIfNotExists</a>(mesh, propname);</div><div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;}</div><div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;</div><div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE,</div><div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    <span class="keyword">typename</span> ITERATOR_TYPE, <span class="keyword">typename</span> PROP_VALUE&gt;</div><div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Use getOrMakeProperty instead.&quot;</span>)</div><div class="line"><a name="l00872"></a><span class="lineno"><a class="line" href="a02597.html#a30e18639a7573eaa6295e26c33c48109">  872</a></span>&#160;<a class="code" href="a02597.html">PropertyManager</a>&lt;PROPTYPE&gt; <a class="code" href="a02597.html#acbe75e98e92fe82e86ee8105a68108d5">makePropertyManagerFromExistingOrNew</a>(</div><div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        <a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname,</div><div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;        const ITERATOR_TYPE &amp;begin, const ITERATOR_TYPE &amp;end,</div><div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;        const PROP_VALUE &amp;init_value) {</div><div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;PROPTYPE&gt;::createIfNotExists</a>(</div><div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;            mesh, propname, begin, end, init_value);</div><div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;}</div><div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;</div><div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> PROPTYPE,</div><div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;    <span class="keyword">typename</span> ITERATOR_RANGE, <span class="keyword">typename</span> PROP_VALUE&gt;</div><div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;OM_DEPRECATED(<span class="stringliteral">&quot;Use getOrMakeProperty instead.&quot;</span>)</div><div class="line"><a name="l00894"></a><span class="lineno"><a class="line" href="a02597.html#a18ca68cb05137e40cf43a2b0096c92db">  894</a></span>&#160;<a class="code" href="a02597.html">PropertyManager</a>&lt;PROPTYPE&gt; <a class="code" href="a02597.html#acbe75e98e92fe82e86ee8105a68108d5">makePropertyManagerFromExistingOrNew</a>(</div><div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;        <a class="code" href="a02313.html">PolyConnectivity</a> &amp;mesh, const <span class="keywordtype">char</span> *propname,</div><div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;        const ITERATOR_RANGE &amp;range,</div><div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;        const PROP_VALUE &amp;init_value) {</div><div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;    <span class="keywordflow">return</span> makePropertyManagerFromExistingOrNew&lt;PROPTYPE&gt;(</div><div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;            mesh, propname, range.begin(), range.end(), init_value);</div><div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;}</div><div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;</div><div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;</div><div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MeshT&gt;</div><div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;<a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::VPropHandleT&lt;typename MeshT::Point&gt;</a>&gt;</div><div class="line"><a name="l00908"></a><span class="lineno"><a class="line" href="a02597.html#a624c702d7caca52693790995d4e7e36a">  908</a></span>&#160;<a class="code" href="a02597.html#a624c702d7caca52693790995d4e7e36a">getPointsProperty</a>(MeshT &amp;mesh) {</div><div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::VPropHandleT&lt;typename MeshT::Point&gt;</a>&gt;(mesh, mesh.points_property_handle());</div><div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;}</div><div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;</div><div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MeshT&gt;</div><div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;<a class="code" href="a02609.html">ConstPropertyViewer&lt;OpenMesh::VPropHandleT&lt;typename MeshT::Point&gt;</a>&gt;</div><div class="line"><a name="l00917"></a><span class="lineno"><a class="line" href="a02597.html#a2c29dc453a6bbe9a580f0dd2b1c5215c">  917</a></span>&#160;<a class="code" href="a02597.html#a2c29dc453a6bbe9a580f0dd2b1c5215c">getPointsProperty</a>(<span class="keyword">const</span> MeshT &amp;mesh) {</div><div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;  <span class="keyword">using</span> PropType = <a class="code" href="a02553.html">OpenMesh::VPropHandleT&lt;typename MeshT::Point&gt;</a>;</div><div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="a02609.html">ConstPropertyViewer&lt;PropType&gt;</a>(mesh, mesh.points_property_handle());</div><div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;}</div><div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;</div><div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> HandleT, <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">Prop</a> = <a class="code" href="a02597.html">PropertyManager&lt;typename PropHandle&lt;HandleT&gt;::template</a> type&lt;T&gt;&gt;;</div><div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;</div><div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">VProp</a> = <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::VPropHandleT&lt;T&gt;</a>&gt;;</div><div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;</div><div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">HProp</a> = <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::HPropHandleT&lt;T&gt;</a>&gt;;</div><div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;</div><div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">EProp</a> = <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::EPropHandleT&lt;T&gt;</a>&gt;;</div><div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;</div><div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">FProp</a> = <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::FPropHandleT&lt;T&gt;</a>&gt;;</div><div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;</div><div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;<span class="keyword">using</span> <a class="code" href="a02597.html">MProp</a> = <a class="code" href="a02597.html">PropertyManager&lt;OpenMesh::MPropHandleT&lt;T&gt;</a>&gt;;</div><div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;</div><div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;</div><div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;} <span class="comment">/* namespace OpenMesh */</span></div><div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PROPERTYMANAGER_HH_ */</span><span class="preprocessor"></span></div><div class="ttc" id="a02597_html_aba0aec0d315ac14402c43fcc9543b869"><div class="ttname"><a href="a02597.html#aba0aec0d315ac14402c43fcc9543b869">OpenMesh::PropertyManager::operator()</a></div><div class="ttdeci">PROPTYPE::reference operator()(const Handle &amp;handle=Handle())</div><div class="ttdoc">Enables convenient access to the encapsulated property. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:475</div></div>
<div class="ttc" id="a02133_html_abf5af584fc22471b32461eeef7d5b3d4"><div class="ttname"><a href="a02133.html#abf5af584fc22471b32461eeef7d5b3d4">OpenMesh::BaseKernel::get_property_handle</a></div><div class="ttdeci">bool get_property_handle(VPropHandleT&lt; T &gt; &amp;_ph, const std::string &amp;_name) const</div><div class="ttdoc">You should not use this function directly. </div><div class="ttdef"><b>Definition:</b> BaseKernel.hh:254</div></div>
<div class="ttc" id="a02553_html"><div class="ttname"><a href="a02553.html">OpenMesh::VPropHandleT</a></div><div class="ttdoc">Handle representing a vertex property. </div><div class="ttdef"><b>Definition:</b> Property.hh:484</div></div>
<div class="ttc" id="a02597_html_a124b1e945be6f5188a3bfab685018008"><div class="ttname"><a href="a02597.html#a124b1e945be6f5188a3bfab685018008">OpenMesh::PropertyManager::makePropertyManagerFromNew</a></div><div class="ttdeci">PropertyManager&lt; PROPTYPE &gt; makePropertyManagerFromNew(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:819</div></div>
<div class="ttc" id="a02597_html_a624c702d7caca52693790995d4e7e36a"><div class="ttname"><a href="a02597.html#a624c702d7caca52693790995d4e7e36a">OpenMesh::PropertyManager::getPointsProperty</a></div><div class="ttdeci">PropertyManager&lt; OpenMesh::VPropHandleT&lt; typename MeshT::Point &gt; &gt; getPointsProperty(MeshT &amp;mesh)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:908</div></div>
<div class="ttc" id="a02597_html_a8c4a25a0252e0f0f7de16007410f2b8c"><div class="ttname"><a href="a02597.html#a8c4a25a0252e0f0f7de16007410f2b8c">OpenMesh::PropertyManager::PropertyManager</a></div><div class="ttdeci">PropertyManager(const Value &amp;initial_value, const PolyConnectivity &amp;mesh)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:220</div></div>
<div class="ttc" id="a02597_html"><div class="ttname"><a href="a02597.html">OpenMesh::PropertyManager</a></div><div class="ttdoc">This class is intended to manage the lifecycle of properties. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:80</div></div>
<div class="ttc" id="a02597_html_aa1b14fd4993a46ba4a9d417279861e1c"><div class="ttname"><a href="a02597.html#aa1b14fd4993a46ba4a9d417279861e1c">OpenMesh::PropertyManager::clone</a></div><div class="ttdeci">PropertyManager clone()</div><div class="ttdoc">Create property manager referring to a copy of the current property. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:262</div></div>
<div class="ttc" id="a02597_html_a510b1f70ae8b69d9c4639b74c38eebba"><div class="ttname"><a href="a02597.html#a510b1f70ae8b69d9c4639b74c38eebba">OpenMesh::PropertyManager::makeTemporaryProperty</a></div><div class="ttdeci">PropertyManager&lt; typename HandleToPropHandle&lt; ElementT, T &gt;::type &gt; makeTemporaryProperty(PolyConnectivity &amp;mesh)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:701</div></div>
<div class="ttc" id="a02597_html_a1c7b5c7063fb137ba9552afd4a0ec77f"><div class="ttname"><a href="a02597.html#a1c7b5c7063fb137ba9552afd4a0ec77f">OpenMesh::PropertyManager::set_range</a></div><div class="ttdeci">void set_range(HandleTypeIterator begin, HandleTypeIterator end, const PROP_VALUE &amp;value)</div><div class="ttdoc">Conveniently set the property for an entire range of values. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:517</div></div>
<div class="ttc" id="a02133_html_a2e2f14b6f08ae63173594555e0c94d57"><div class="ttname"><a href="a02133.html#a2e2f14b6f08ae63173594555e0c94d57">OpenMesh::BaseKernel::property</a></div><div class="ttdeci">PropertyT&lt; T &gt; &amp; property(VPropHandleT&lt; T &gt; _ph)</div><div class="ttdoc">In most cases you should use the convenient PropertyManager wrapper and use of this function should n...</div><div class="ttdef"><b>Definition:</b> BaseKernel.hh:310</div></div>
<div class="ttc" id="a02597_html_a54c8a19dfecfc4dea7f7561a99db9f13"><div class="ttname"><a href="a02597.html#a54c8a19dfecfc4dea7f7561a99db9f13">OpenMesh::PropertyManager::operator[]</a></div><div class="ttdeci">PROPTYPE::reference operator[](Handle handle)</div><div class="ttdoc">Enables convenient access to the encapsulated property. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:453</div></div>
<div class="ttc" id="a02597_html_a72b64e0da09d2f6ecf31d91df1f03198"><div class="ttname"><a href="a02597.html#a72b64e0da09d2f6ecf31d91df1f03198">OpenMesh::PropertyManager::operator*</a></div><div class="ttdeci">PROPTYPE::const_reference &amp; operator*() const</div><div class="ttdoc">Access the value of the encapsulated mesh property. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:442</div></div>
<div class="ttc" id="a02597_html_a6a0a645ca6dc88a5d315e9a151c5d61b"><div class="ttname"><a href="a02597.html#a6a0a645ca6dc88a5d315e9a151c5d61b">OpenMesh::PropertyManager::makePropertyManagerFromExisting</a></div><div class="ttdeci">PropertyManager&lt; PROPTYPE, MeshT &gt; makePropertyManagerFromExisting(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:838</div></div>
<div class="ttc" id="a02597_html_a8d0e0ad75218837f7ab7bff87fd6f24d"><div class="ttname"><a href="a02597.html#a8d0e0ad75218837f7ab7bff87fd6f24d">OpenMesh::PropertyManager::getProperty</a></div><div class="ttdeci">PropertyManager&lt; typename HandleToPropHandle&lt; ElementT, T &gt;::type &gt; getProperty(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:763</div></div>
<div class="ttc" id="a02597_html_acbe75e98e92fe82e86ee8105a68108d5"><div class="ttname"><a href="a02597.html#acbe75e98e92fe82e86ee8105a68108d5">OpenMesh::PropertyManager::makePropertyManagerFromExistingOrNew</a></div><div class="ttdeci">PropertyManager&lt; PROPTYPE, MeshT &gt; makePropertyManagerFromExistingOrNew(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:853</div></div>
<div class="ttc" id="a02597_html_a905436f2131ac5811ad43400fb20fb54"><div class="ttname"><a href="a02597.html#a905436f2131ac5811ad43400fb20fb54">OpenMesh::PropertyManager::copy</a></div><div class="ttdeci">static void copy(const char *prop_name, PolyConnectivity &amp;src_mesh, const RangeType &amp;src_range, PolyConnectivity &amp;dst_mesh, const RangeType_2 &amp;dst_range)</div><div class="ttdoc">Copy the values of a property from a source range to a target range. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:581</div></div>
<div class="ttc" id="a02597_html_add87d369da580fe875ce77472d80f336"><div class="ttname"><a href="a02597.html#add87d369da580fe875ce77472d80f336">OpenMesh::PropertyManager::getOrMakeProperty</a></div><div class="ttdeci">PropertyManager&lt; typename HandleToPropHandle&lt; ElementT, T &gt;::type &gt; getOrMakeProperty(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:804</div></div>
<div class="ttc" id="a02597_html_a2a8ee99088e9730f51367b431d325aee"><div class="ttname"><a href="a02597.html#a2a8ee99088e9730f51367b431d325aee">OpenMesh::PropertyManager::PropertyManager</a></div><div class="ttdeci">PropertyManager(const Value &amp;initial_value, PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:194</div></div>
<div class="ttc" id="a02597_html_adcbed3201fe66c0764c26d0a44724af1"><div class="ttname"><a href="a02597.html#adcbed3201fe66c0764c26d0a44724af1">OpenMesh::PropertyManager::copy_to</a></div><div class="ttdeci">void copy_to(HandleTypeIterator begin, HandleTypeIterator end, PropertyManager&lt; PROPTYPE_2 &gt; &amp;dst_propmanager, HandleTypeIterator_2 dst_begin, HandleTypeIterator_2 dst_end) const</div><div class="ttdoc">Conveniently transfer the values managed by one property manager onto the values managed by a differe...</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:547</div></div>
<div class="ttc" id="a02609_html"><div class="ttname"><a href="a02609.html">OpenMesh::ConstPropertyViewer</a></div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:613</div></div>
<div class="ttc" id="a02133_html_a8256c16bf247547ae480344cd1c2ec2b"><div class="ttname"><a href="a02133.html#a8256c16bf247547ae480344cd1c2ec2b">OpenMesh::BaseKernel::mproperty</a></div><div class="ttdeci">PropertyT&lt; T &gt; &amp; mproperty(MPropHandleT&lt; T &gt; _ph)</div><div class="ttdoc">In most cases you should use the convenient PropertyManager wrapper and use of this function should n...</div><div class="ttdef"><b>Definition:</b> BaseKernel.hh:346</div></div>
<div class="ttc" id="a02505_html"><div class="ttname"><a href="a02505.html">OpenMesh::HandleToPropHandle</a></div><div class="ttdef"><b>Definition:</b> HandleToPropHandle.hh:10</div></div>
<div class="ttc" id="a02597_html_a0d95172f0cee362353cf61870a09b7e7"><div class="ttname"><a href="a02597.html#a0d95172f0cee362353cf61870a09b7e7">OpenMesh::PropertyManager::operator*</a></div><div class="ttdeci">PROPTYPE::reference &amp; operator*()</div><div class="ttdoc">Get the mesh corresponding to the property. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:426</div></div>
<div class="ttc" id="a02537_html"><div class="ttname"><a href="a02537.html">OpenMesh::PropertyT</a></div><div class="ttdoc">Default property class for any type T. </div><div class="ttdef"><b>Definition:</b> Property.hh:89</div></div>
<div class="ttc" id="a02133_html_a1e6ab3a90a233ced3fef7a1575766c17"><div class="ttname"><a href="a02133.html#a1e6ab3a90a233ced3fef7a1575766c17">OpenMesh::BaseKernel::remove_property</a></div><div class="ttdeci">void remove_property(VPropHandleT&lt; T &gt; &amp;_ph)</div><div class="ttdoc">You should not use this function directly. </div><div class="ttdef"><b>Definition:</b> BaseKernel.hh:194</div></div>
<div class="ttc" id="a02597_html_a552b239c7cfa69ce7163417787cf37bf"><div class="ttname"><a href="a02597.html#a552b239c7cfa69ce7163417787cf37bf">OpenMesh::PropertyManager::hasProperty</a></div><div class="ttdeci">bool hasProperty(const PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:729</div></div>
<div class="ttc" id="a02313_html"><div class="ttname"><a href="a02313.html">OpenMesh::PolyConnectivity</a></div><div class="ttdoc">Connectivity Class for polygonal meshes. </div><div class="ttdef"><b>Definition:</b> PolyConnectivity.hh:112</div></div>
<div class="ttc" id="a02597_html_a87d05b80c8e2abe588624c25520822bf"><div class="ttname"><a href="a02597.html#a87d05b80c8e2abe588624c25520822bf">OpenMesh::PropertyManager::PropertyManager</a></div><div class="ttdeci">PropertyManager(const PolyConnectivity &amp;mesh)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:208</div></div>
<div class="ttc" id="a02597_html_a7c72dc50f42e6e4ee36d29cd29ceae85"><div class="ttname"><a href="a02597.html#a7c72dc50f42e6e4ee36d29cd29ceae85">OpenMesh::PropertyManager::makeTemporaryProperty</a></div><div class="ttdeci">PropertyManager&lt; typename HandleToPropHandle&lt; ElementT, T &gt;::type &gt; makeTemporaryProperty(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:671</div></div>
<div class="ttc" id="a02597_html_afd9bdea74cd82fba4cac786ce5f4b6af"><div class="ttname"><a href="a02597.html#afd9bdea74cd82fba4cac786ce5f4b6af">OpenMesh::PropertyManager::PropertyManager</a></div><div class="ttdeci">PropertyManager(PolyConnectivity &amp;mesh, const char *propname)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:178</div></div>
<div class="ttc" id="a01233_html"><div class="ttname"><a href="a01233.html">OpenMesh</a></div><div class="ttdoc">Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...</div><div class="ttdef"><b>Definition:</b> MeshItems.hh:59</div></div>
<div class="ttc" id="a02597_html_ab99f400195c4284bfde18e16570d4e9b"><div class="ttname"><a href="a02597.html#ab99f400195c4284bfde18e16570d4e9b">OpenMesh::PropertyManager::PropertyManager</a></div><div class="ttdeci">PropertyManager(PolyConnectivity &amp;mesh, PROPTYPE property_handle)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:233</div></div>
<div class="ttc" id="a02597_html_a2c29dc453a6bbe9a580f0dd2b1c5215c"><div class="ttname"><a href="a02597.html#a2c29dc453a6bbe9a580f0dd2b1c5215c">OpenMesh::PropertyManager::getPointsProperty</a></div><div class="ttdeci">ConstPropertyViewer&lt; OpenMesh::VPropHandleT&lt; typename MeshT::Point &gt; &gt; getPointsProperty(const MeshT &amp;mesh)</div><div class="ttdef"><b>Definition:</b> PropertyManager.hh:917</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
